<?php
$this->pageTitle     = $product->titleSeo . ' - ' . Option::getItem('site_name');
$this->meta_desc     = $product->meta_desc;
$this->meta_keywords = $product->meta_keywords;
?>
<div class="content">
    <div class="main-wrap">
        <div class="colum-right fl product-hl">
            <?php
            echo $this->renderPartial('//layouts/_box_info_project', array(
                'data' => $product
            ))
            ?>

            <div id="content">
                <?php echo str_replace('img', 'img rel="group1"', $product->content); ?>
            </div>
        </div>
        <div class="fr colum-left mr-r-none">
            <!--box hotline-->
            <?php echo $this->renderPartial('//layouts/box_hotline') ?>
            <!-- end box hotline-->
            <?php if ($relations): ?>
                <div class="project_relation box-hotline">
                    <h4 class="name-box">
                        Dự án cùng danh mục
                    </h4>
                    <div class="r-list">
                        <?php foreach ($relations as $value): ?>
                            <div class="p-item">
                                <h3 class="r-title title-product">
                                    <a href="<?php echo $value->publicUrl ?>" title="<?php echo $value->name ?>">
                                        <?php echo $value->name ?>
                                    </a>
                                </h3>
                                <div class="row-fluid">
                                    <img class="span5" src="<?php echo $value->getPublicImage(76, 76) ?>" alt="<?php echo $value->url ?>"/>
                                    <div class="span7">
                                        <div>Giá: <b class="r-price"><?php echo $value->price ?></b></div>
                                        <?php echo $value->address ?>
                                    </div>
                                </div>
                            </div>
                        <?php endforeach; ?>
                    </div>
                </div>
            <?php endif; ?>
        </div>
        <div class="clear"></div>
        <br>
        Các Dự Án Cùng Danh Mục
        <ul>
            <?php foreach ($relations as $value): ?>
                <li>
                    <a href="<?php echo $value->publicUrl ?>" title="<?php echo $value->name ?>">
                        <?php echo $value->name ?>
                    </a>
                </li>
            <?php endforeach; ?>
        </ul>
    </div>
</div>
<script src="<?php echo $this->assetDir ?>js/glisse.js"></script>
<script>
    $(function () {

        $('#content img').glisse({speed: 500, changeSpeed: 550, effect: 'fade', fullscreen: false});
    });
</script>